<template>
  <h1>测试页面</h1>
  <div>{{ listData["age"] }}</div>
  <suspense>
    <Async />
  </suspense>
</template>
<script lang="ts">
import { defineComponent, reactive, toRefs } from "vue";
import Async from "./async.vue";
export default defineComponent({
  components: { Async },
  setup() {
    let state = reactive({
      name: 123,
      listData: { age: 123 },
    });
    return { ...toRefs(state) };

    // const str = `
    //   data.name=500;
    //   alert("123")
    //   `;
    // const fun = new Function("data", str);
    // fun(state);
  },
});
</script>
